package com.linkhub.oms.admin.modules.stock.enums;

import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.Getter;

@Getter
public enum BusinessType implements IEnumConvert<String> {
    PURCHASE_RECEIPT("CGRK", "采购入库"),  // 商家下提货单的场景
    PURCHASE_CANCEL("CGQX", "采购取消"),
    RETURN_GOOD("WLTH", "物流退货"), // 用户取消订单退货场景
    SELL("XS", "销售"),
    COMBINE_PROCESS("ZHJG", "组合加工"),
    STOCK_CHECK("CCPD", "库存盘点"),
    STOCK_TRANSFER("CCZY", "库存转移"),
    CONSUMABLE_OUT("HCCK", "耗材出库")
    ,;
    private String code;
    private String desc;

    BusinessType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return this.code;
    }
}
